Transform recursive xml into Json with php

join shbcf.ru